from django.conf.urls import url, include
from django.contrib import admin
from django.http import HttpResponse

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^app1/', include('app1.urls')),
    url(r'^app2/', include('app2.urls')),
    url(r'^app3/', include('app3.urls')),
]

def page_not_found(request):
    text = 'url <font color="red">%s</font> not found' % request.META['PATH_INFO']
    return HttpResponse(text, status=404)


handler404 = page_not_found
